<%--<%@ taglib prefix="tbe" uri="http://iris.egrantTag.com/jsp/estl/core" %>--%>
<%@ taglib uri="/WEB-INF/tableexcel.tld" prefix="tbe"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<x:parse xml="${param.xmlstr}" var="xmlData"/>




<script type="text/javascript">


	//控制导入表格的样式

	var instruments_validate_option = [
		{
			'name' : 'instrument_name',
			'zhName' : '设备名称',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'original_money',
			'zhName' : '原值',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'instrument_number',
			'zhName' : '数量（台套）',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'purchase_time',
			'zhName' : '购置时间',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'page',
			'zhName' : '附件佐证材料页码',
			'align' : 'left',
			'width' : '4'
		}
	];
	var exercises_head_option = [
		{
			'name' : 'convene_date',
			'zhName' : '学术委员会召开时间',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'convene_address',
			'zhName' : '学术委员会召开地点',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'committee_number',
			'zhName' : '到会委员数量',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'page',
			'zhName' : '附件佐证材料页码',
			'align' : 'left',
			'width' : '4'
		}
	];
	var committees_head_option = [
		{
			'name' : 'committee_name',
			'zhName' : '委员姓名',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'committee_org',
			'zhName' : '工作单位',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'committee_post',
			'zhName' : '职务',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'prof_title',
			'zhName' : '职称',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'science_post',
			'zhName' : '学术委员会职务',
			'align' : 'left',
			'width' : '4'
		}
	];
	var topics_head_option = [
		{
			'name' : 'topic_title',
			'zhName' : '课题名称',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'topic_leader',
			'zhName' : '课题负责人',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'leader_org',
			'zhName' : '负责人工作单位',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'start_time',
			'zhName' : '起止时间',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'topic_money',
			'zhName' : '总经费（万元）',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'page',
			'zhName' : '附件佐证材料页码',
			'align' : 'left',
			'width' : '4'
		}
	];
	var communications_head_option = [
		{
			'name' : 'type',
			'zhName' : '类别',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'domestic_experts',
			'zhName' : '国内专家来室交流（人次）',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'foreign_experts',
			'zhName' : '国外专家来室交流（人次）',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'domestic_person',
			'zhName' : '本室人员到国内其他单位交流（人次）',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'foreign_person',
			'zhName' : '本室人员到国外交流（人次）',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'domestic_conference',
			'zhName' : '参加国内学术会议（人次）',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'foreign_conference',
			'zhName' : '参加国外学术会议（人次）',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'page',
			'zhName' : '附件佐证材料页码',
			'align' : 'left',
			'width' : '4'
		}
	];
	var reports_head_option = [
		{
			'name' : 'meeting_name',
			'zhName' : '会议名称',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'meeting_apply',
			'zhName' : '主办单位',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'meeting_type',
			'zhName' : '会议类型',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'meeting_address',
			'zhName' : '会议地点',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'meeting_date',
			'zhName' : '会议时间',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'meeting_person',
			'zhName' : '报告人',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'page',
			'zhName' : '附件佐证材料页码',
			'align' : 'left',
			'width' : '4'
		}
	];

	var manages_head_option = [
		{
			'name' : 'meeting_name',
			'zhName' : '会议名称',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'meeting_apply',
			'zhName' : '主办/承办',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'meeting_type',
			'zhName' : '会议类型',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'meeting_address',
			'zhName' : '会议地点',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'meeting_date',
			'zhName' : '会议时间',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'meeting_person',
			'zhName' : '参会人数',
			'align' : 'left',
			'width' : '4'
		},
		{
			'name' : 'page',
			'zhName' : '附件佐证材料页码',
			'align' : 'left',
			'width' : '4'
		}
	];

	/**
	 * 导入字段验证
	 * @type {*[]}
	 */
	var instruments_validate_option = [
		{
			'name' : 'instrument_name',
			'isValid' : true,
			'rules' : [ "required : true","maxStrLength : 99"]
		},
		{
			'name' : 'original_money',
			'isValid' : true,
			'rules' : [ "required : true","double : true",
				/*"min : 10",*/
				"max : 999999999.99"]
		},


		{
			'name' : 'instrument_number',
			'isValid' : true,
			'rules' : [ "required : true","integer: true","max:999999999 "]
		},
		{
			'name' : 'purchase_time',
			'isValid' : true,
			'rules' : [ "required : true","isDate : true"]
		},
		{
			'name' : 'page',
			'isValid' : true,
			'rules' : [ "required : true","maxStrLength : 99"]
		}

	];
	var exercises_validate_option = [
		{
			'name' : 'convene_date',
			'isValid' : true,
			'rules' : [ "required : true","isDate : true"]
		},
		{
			'name' : 'convene_address',
			'isValid' : true,
			'rules' : [ "required : true","maxStrLength : 99"]
		},


		{
			'name' : 'committee_number',
			'isValid' : true,
			'rules' : [ "required : true","integer: true","max:999999999"]
		},
		{
			'name' : 'page',
			'isValid' : true,
			'rules' : [ "required : true","maxStrLength : 99"]
		}

	];
	var committees_validate_option = [
		{
			'name' : 'committee_name',
			'isValid' : true,
			'rules' : [ "required : true","maxStrLength : 99"]
		},
		{
			'name' : 'committee_org',
			'isValid' : true,
			'rules' : [ "required : true","maxStrLength : 99"]
		},


		{
			'name' : 'committee_post',
			'isValid' : true,
			'rules' : [ "required : true","maxStrLength : 99"]
		},
		/*{
			'name' : 'committee_title',
			'isValid' : true,
			'rules' : [ "required : true","maxStrLength : 99"]
		},*/
		{
			'name' : 'prof_title',
			'isValid' : true,
			'rules' : [ "required : true" ]
		},
		{
			'name' : 'science_post',
			'isValid' : true,
			'rules' : [
				"required : true",
				"maxStrLength : 99"
			]
		}
	];
	var topics_validate_option = [
		{
			'name' : 'topic_title',
			'isValid' : true,
			'rules' : [ "required : true","maxStrLength : 99"]
		},
		{
			'name' : 'topic_leader',
			'isValid' : true,
			'rules' : [ "required : true","maxStrLength : 99"]
		},


		{
			'name' : 'leader_org',
			'isValid' : true,
			'rules' : [ "required : true","maxStrLength : 99"]
		},
		{
			'name' : 'start_time',
			'isValid' : true,
			'rules' : [ "required : true","maxStrLength : 99"]
		},

		{
			'name' : 'topic_money',
			'isValid' : true,
			'rules' : [ "required : true","double : true",
				/*"min : 10",*/
				"max : 999999999.99"]
		},
		{
			'name' : 'page',
			'isValid' : true,
			'rules' : [
				"required : true",
				"maxStrLength : 99"
			]
		}
	];
	var communications_validate_option = [
		{
			'name' : 'type',
			'isValid' : true,
			'rules' : [ "required : true","maxStrLength : 99"]
		},
		{
			'name' : 'domestic_experts',
			'isValid' : true,
			'rules' : [ "required : true","integer: true","max:999999999"]
		},


		{
			'name' : 'foreign_experts',
			'isValid' : true,
			'rules' : [ "required : true","integer: true","max:999999999"]
		},
		{
			'name' : 'domestic_person',
			'isValid' : true,
			'rules' : [ "required : true","integer: true","max:999999999"]
		},

		{
			'name' : 'foreign_person',
			'isValid' : true,
			'rules' : [ "required : true","integer: true","max:999999999"]
		},
		{
			'name' : 'domestic_conference',
			'isValid' : true,
			'rules' : [
				"required : true",
				"integer: true","max:999999999"
			]
		},
		{
			'name' : 'foreign_conference',
			'isValid' : true,
			'rules' : [
				"required : true",
				"integer: true",
				"max:999999999"
			]
		},
		{
			'name' : 'page',
			'isValid' : true,
			'rules' : [
				"required : true",
				"maxStrLength : 99"
			]
		}
	];
	var reports_validate_option = [
		{
			'name' : 'meeting_name',
			'isValid' : true,
			'rules' : [ "required : true","maxStrLength : 99" ]
		},


		{
			'name' : 'meeting_apply',
			'isValid' : true,
			'rules' : [ "required : true","maxStrLength : 99"]
		},
		{
			'name' : 'meeting_type',
			'isValid' : true,
			'rules' : [ "required : true","maxStrLength : 99"]
		},

		{
			'name' : 'meeting_address',
			'isValid' : true,
			'rules' : [ "required : true","maxStrLength : 99"]
		},
		{
			'name' : 'meeting_date',
			'isValid' : true,
			'rules' : [
				"required : true",
				"isDate : true"
			]
		},
		{
			'name' : 'meeting_person',
			'isValid' : true,
			'rules' : [
				"required : true",
				"maxStrLength : 99"
			]
		},
		{
			'name' : 'page',
			'isValid' : true,
			'rules' : [
				"required : true",
				"maxStrLength : 99"
			]
		}
	];
	var manages_validate_option = [
		{
			'name' : 'meeting_name',
			'isValid' : true,
			'rules' : [ "required : true","maxStrLength : 99" ]
		},


		{
			'name' : 'meeting_apply',
			'isValid' : true,
			'rules' : [ "required : true","maxStrLength : 99"]
		},
		{
			'name' : 'meeting_type',
			'isValid' : true,
			'rules' : [ "required : true","maxStrLength : 99"]
		},

		{
			'name' : 'meeting_address',
			'isValid' : true,
			'rules' : [ "required : true","maxStrLength : 99"]
		},
		{
			'name' : 'meeting_date',
			'isValid' : true,
			'rules' : [
				"required : true",
				"isDate : true"
			]
		},
		{
			'name' : 'meeting_person',
			'isValid' : true,
			'rules' : [
				"required : true",
				"integer: true",
				"max:999999999"
			]
		},
		{
			'name' : 'page',
			'isValid' : true,
			'rules' : [
				"required : true",
				"maxStrLength : 99"
			]
		}
	];



</script>
<div class="t_bar">
	1、主办/承办大型学术会议（限99条）
</div>
<table id="manages" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0"
	   style="*border-bottom: #a1c0dc 1px solid;table-layout: fixed;">
	<col width="5%"/>
	<col width="5%"/>
	<col width="13%"/>
	<col width="13%"/>
	<col width="13%"/>
	<col width="13%"/>
	<col width="13%"/>
	<col width="13%"/>
	<col width="12%"/>
	<thead>
	<tr style="border:1px solid #B7D1E6">
		<th class="TblHead" align="center">选择</th>
		<th class="TblHead" align="center">序号</th>
		<th class="TblHead" align="center">会议名称</th>
		<th class="TblHead" align="center">主办/承办</th>
		<th class="TblHead" align="center">会议类型</th>
		<th class="TblHead" align="center">会议地点</th>
		<th class="TblHead" align="center">会议时间</th>
		<th class="TblHead" align="center">参会人数</th>
		<th class="TblHead" align="center">附件佐证材料页码</th>
	</tr>

	</thead>
	<tbody>
	<tr style="display:none" align="center">
		<td align="center">
			<input type="radio" class="radiobutton" name="selmanages">
		</td>
		<td align="center">
			<span name="manages|manage[0]@seq_no">[index]</span>
		</td>
		<td align="center">
			<input type="text" name="manages|manage[0]|meeting_name" label="会议名称" class=" required input_text "
				   maxlength="99" style="width:80%"/>
		</td>
		<td align="center">
			<input type="text" name="manages|manage[0]|meeting_apply" label="主办/承办" class=" required input_text "
				   maxlength="99" style="width:80%"/>
		</td>
		<td align="center">
			<input type="text" name="manages|manage[0]|meeting_type" label="会议类型" maxlength="99" class="required"  style="width: 80%;"/>
		</td>
		<td align="center">
			<input type="text" name="manages|manage[0]|meeting_address" label="会议地点" class=" required input_text "
				   maxlength="99" style="width:80%"  />
		</td>
		<td>
			<input id="manage_meeting_date_[0]" name="manages|manage[0]|meeting_date" label="会议时间"
				   class="required input_text date beforeToday" style="width:70%"/>
		</td>
		<td align="center">
			<input type="text" name="manages|manage[0]|meeting_person" onfocus="InitInput.setNumber(this,9,0,0)" label="参会人数" class=" required input_text "  style="width:80%;text-align: right"  />
		</td>
		<td align="center">
			<input type="text" name="manages|manage[0]|page" label="附件佐证材料页码" class="input_text required"
				   maxlength="99" style="width:80%"/>
		</td>
	</tr>

	<c:set value="0" var="index" scope="page"/>
	<x:forEach select="$xmlData/data/manages/manage" var="manage">

		<c:choose>
			<c:when test="${index<10}"><c:set value="0" var="flag" scope="page"/></c:when>
			<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
		</c:choose>
		<tr align="center">
			<td align="center">
				<input type="radio" class="radiobutton" name="selmanages">
			</td>
			<td align="center">
				<span name="manages/manage[${flag}${index}]@seq_no"><x:out select="$manage/@seq_no"/></span>
			</td>
			<td align="center">
				<input type="text" name="manages/manage[${flag}${index}]/meeting_name" label="会议名称" class=" required input_text "
					   maxlength="99" style="width:80%" value="<x:out select="$manage/meeting_name"/>"/>
			</td>

			<td align="center">
				<input type="text" name="manages/manage[${flag}${index}]/meeting_apply" label="主办/承办" class=" required input_text "
					   maxlength="99" style="width:80%" value="<x:out select="$manage/meeting_apply"/>"/>
			</td>
			<td align="center">
				<input type="text" name="manages/manage[${flag}${index}]/meeting_type" label="会议类型" class=" required input_text "
					   maxlength="99" style="width:80%" value="<x:out select="$manage/meeting_type"/>"/>
			</td>
			<td>
				<input type="text" name="manages/manage[${flag}${index}]/meeting_address" label="会议地点" maxlength="99" class="required"
					   style="width: 80%;" value="<x:out select="$manage/meeting_address"/>"/>
			</td>
			<td align="center" >
				<c:set var="meeting_date"><x:out select="$manage/meeting_date"/></c:set>
				<input id="manage_meeting_date_[${flag}${index}]" name="manages/manage[${flag}${index}]/meeting_date" label="会议时间"
					   class="required input_text date beforeToday" style="width:70%" value="${meeting_date}"/>
			</td>
			<td>
				<input type="text" name="manages/manage[${flag}${index}]/meeting_person" label="参会人数" onfocus="InitInput.setNumber(this,9,0,0)" class="required"
					   style="text-align: right; width: 80%;"  value="<x:out select="$manage/meeting_person"/>"/>
			</td>
			<td align="center">
				<input type="text" name="manages/manage[${flag}${index}]/page" label="附件佐证材料页码" class="input_text required"
					   maxlength="99" style="width:80%" value="<x:out select="$manage/page"/>"/>
			</td>
		</tr>
		<c:set value="${index+1}" var="index" scope="page"/>
	</x:forEach>
	</tbody>
	<script type="text/javascript">
		showAllDateTag("manages");
	</script>
</table>
<table width="98%" align="center" border="0">
	<tr >
		<td >
			<input class="button_02" name="cmdAddbefore" type=button value="添加"
				   onclick="if(checkTabLimit('manages',99,'主办/承办大型学术会议最多只能添加99条')){addNewRow('manages');showDateTag('manages');try{top.resizeFrame();}catch(e){};}">
			<input class="button_02" name="cmdMovePrev" type=button value="上移"
				   onclick="movePrev('manages','selmanages')">
			<input class="button_02" name="cmdMoveNext" type=button value="下移"
				   onclick="moveNext('manages','selmanages')">
			<input class="button_02" name="cmddel" type=button value="删除"
				   onclick="deleteSelectedRow('manages','主办/承办大型学术会议')">
			<tbe:tableToExcel tableTitle="主办承办大型学术会议" type="proposal" tableId="manages" keyCode="${posCode}" maxSize="99" validateOption="manages_validate_option" headOption="manages_head_option" buttonClass="button_02"/>

		</td>
	</tr>
</table>
<br/>

<div class="t_bar">
	2、大会特邀报告（限99条）
</div>
<table id="reports" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0"
	   style="*border-bottom: #a1c0dc 1px solid;table-layout: fixed;">
	<col width="5%"/>
	<col width="5%"/>
	<col width="13%"/>
	<col width="13%"/>
	<col width="13%"/>
	<col width="13%"/>
	<col width="13%"/>
	<col width="13%"/>
	<col width="12%"/>
	<thead>
	<tr style="border:1px solid #B7D1E6">
		<th class="TblHead" align="center">选择</th>
		<th class="TblHead" align="center">序号</th>
		<th class="TblHead" align="center">会议名称</th>
		<th class="TblHead" align="center">主办单位</th>
		<th class="TblHead" align="center">会议类型</th>
		<th class="TblHead" align="center">会议地点</th>
		<th class="TblHead" align="center">会议时间</th>
		<th class="TblHead" align="center">报告人</th>
		<th class="TblHead" align="center">附件佐证材料页码</th>
	</tr>

	</thead>
	<tbody>
	<tr style="display:none" align="center">
		<td align="center">
			<input type="radio" class="radiobutton" name="selreports">
		</td>
		<td align="center">
			<span name="reports|report[0]@seq_no">[index]</span>
		</td>
		<td align="center">
			<input type="text" name="reports|report[0]|meeting_name" label="会议名称" class=" required input_text "
				   maxlength="99" style="width:80%"/>
		</td>
		<td align="center">
			<input type="text" name="reports|report[0]|meeting_apply" label="主办单位" class=" required input_text "
				   maxlength="99" style="width:80%"/>
		</td>
		<td align="center">
			<input type="text" name="reports|report[0]|meeting_type" label="会议类型" maxlength="99" class="required"  style="width: 80%;"/>
		</td>
		<td align="center">
			<input type="text" name="reports|report[0]|meeting_address" label="会议地点" class=" required input_text "
				   maxlength="99" style="width:80%"  />
		</td>
		<td>
			<input id="report_meeting_date_[0]" name="reports|report[0]|meeting_date" label="会议时间"
				   class="required input_text date beforeToday" style="width:70%"/>
		</td>
		<td align="center">
			<input type="text" name="reports|report[0]|meeting_person" maxlength="99" label="报告人" class=" required input_text "  style="width:80%;"  />
		</td>
		<td align="center">
			<input type="text" name="reports|report[0]|page" label="附件佐证材料页码" class="input_text required"
				   maxlength="99" style="width:80%"/>
		</td>
	</tr>

	<c:set value="0" var="index" scope="page"/>
	<x:forEach select="$xmlData/data/reports/report" var="report">

		<c:choose>
			<c:when test="${index<10}"><c:set value="0" var="flag" scope="page"/></c:when>
			<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
		</c:choose>
		<tr align="center">
			<td align="center">
				<input type="radio" class="radiobutton" name="selreports">
			</td>
			<td align="center">
				<span name="reports/report[${flag}${index}]@seq_no"><x:out select="$report/@seq_no"/></span>
			</td>
			<td align="center">
				<input type="text" name="reports/report[${flag}${index}]/meeting_name" label="会议名称" class=" required input_text "
					   maxlength="99" style="width:80%" value="<x:out select="$report/meeting_name"/>"/>
			</td>

			<td align="center">
				<input type="text" name="reports/report[${flag}${index}]/meeting_apply" label="主办单位" class=" required input_text "
					   maxlength="99" style="width:80%" value="<x:out select="$report/meeting_apply"/>"/>
			</td>
			<td align="center">
				<input type="text" name="reports/report[${flag}${index}]/meeting_type" label="会议类型" class=" required input_text "
					   maxlength="99" style="width:80%" value="<x:out select="$report/meeting_type"/>"/>
			</td>
			<td>
				<input type="text" name="reports/report[${flag}${index}]/meeting_address" label="会议地点" maxlength="99" class="required"
					   style="width: 80%;" value="<x:out select="$report/meeting_address"/>"/>
			</td>
			<td align="center" >
				<c:set var="meeting_date"><x:out select="$report/meeting_date"/></c:set>
				<input id="report_meeting_date_[${flag}${index}]" name="reports/report[${flag}${index}]/meeting_date" label="会议时间"
					   class="required input_text date beforeToday" style="width:70%" value="${meeting_date}"/>
			</td>
			<td>
				<input type="text" name="reports/report[${flag}${index}]/meeting_person" label="报告人"  maxlength="99" class="required"
					   style=" width: 80%;"  value="<x:out select="$report/meeting_person"/>"/>
			</td>
			<td align="center">
				<input type="text" name="reports/report[${flag}${index}]/page" label="附件佐证材料页码" class="input_text required"
					   maxlength="99" style="width:80%" value="<x:out select="$report/page"/>"/>
			</td>
		</tr>
		<c:set value="${index+1}" var="index" scope="page"/>
	</x:forEach>
	</tbody>
	<script type="text/javascript">
		showAllDateTag("reports");
	</script>
</table>
<table width="98%" align="center" border="0">
	<tr >
		<td >
			<input class="button_02" name="cmdAddbefore" type=button value="添加"
				   onclick="if(checkTabLimit('reports',99,'大会特邀报告最多只能添加99条')){addNewRow('reports');showDateTag('reports');try{top.resizeFrame();}catch(e){};}">
			<input class="button_02" name="cmdMovePrev" type=button value="上移"
				   onclick="movePrev('reports','selreports')">
			<input class="button_02" name="cmdMoveNext" type=button value="下移"
				   onclick="moveNext('reports','selreports')">
			<input class="button_02" name="cmddel" type=button value="删除"
				   onclick="deleteSelectedRow('reports','大会特邀报告')">
			<tbe:tableToExcel tableTitle="大会特邀报告" type="proposal" tableId="reports" keyCode="${posCode}" maxSize="99" validateOption="reports_validate_option" headOption="reports_head_option" buttonClass="button_02"/>

		</td>
	</tr>
</table>

<br/>
<div class="t_bar">
	3、国内外学术交流（各限填10项）
</div>
<table id="communications" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0"
	   style="*border-bottom: #a1c0dc 1px solid;table-layout: fixed;">
	<col width="5%"/>
	<col width="5%"/>
	<col width="11%"/>
	<col width="11%"/>
	<col width="11%"/>
	<col width="11%"/>
	<col width="11%"/>
	<col width="11%"/>
	<col width="13%"/>
	<thead>
	<tr style="border:1px solid #B7D1E6">
		<th class="TblHead" align="center">选择</th>
		<th class="TblHead" align="center">序号</th>
		<th class="TblHead" align="center">类别</th>
		<th class="TblHead" align="center">国内专家来室交流（人次）</th>
		<th class="TblHead" align="center">国外专家来室交流（人次）</th>
		<th class="TblHead" align="center">本室人员到国内其他单位交流（人次）</th>
		<th class="TblHead" align="center">本室人员到国外交流（人次）</th>
		<th class="TblHead" align="center">参加国内学术会议（人次）</th>
		<th class="TblHead" align="center">参加国外学术会议（人次）</th>
		<th class="TblHead" align="center">附件佐证材料页码</th>
	</tr>

	</thead>
	<tbody>
	<tr style="display:none" align="center">
		<td align="center">
			<input type="radio" class="radiobutton" name="selcommunications">
		</td>
		<td align="center">
			<span name="communications|communication[0]@seq_no">[index]</span>
		</td>
		<td align="center">
			<input type="text" name="communications|communication[0]|type" label="类别" class=" required input_text "
				   maxlength="99" style="width:80%"/>
		</td>
		<td align="center">
			<input type="text" name="communications|communication[0]|domestic_experts" onfocus="InitInput.setNumber(this,9,0,0)" label="国内专家来室交流" class=" required input_text "  style="width:80%;text-align: right"  />
		</td>
		<td align="center">
			<input type="text" name="communications|communication[0]|foreign_experts" onfocus="InitInput.setNumber(this,9,0,0)" label="国外专家来室交流" class=" required input_text "  style="width:80%;text-align: right"  />
		</td>
		<td align="center">
			<input type="text" name="communications|communication[0]|domestic_person" onfocus="InitInput.setNumber(this,9,0,0)" label="本室人员到国内其他单位交流" class=" required input_text "  style="width:80%;text-align: right"  />
		</td>
		<td align="center">
			<input type="text" name="communications|communication[0]|foreign_person" onfocus="InitInput.setNumber(this,9,0,0)" label="本室人员到国外交流" class=" required input_text "  style="width:80%;text-align: right"  />
		</td>
		<td align="center">
		<input type="text" name="communications|communication[0]|domestic_conference" onfocus="InitInput.setNumber(this,9,0,0)" label="参加国内学术会议" class=" required input_text "  style="width:80%;text-align: right"  />
	</td>
		<td align="center">
			<input type="text" name="communications|communication[0]|foreign_conference" onfocus="InitInput.setNumber(this,9,0,0)" label="参加国外学术会议" class=" required input_text "  style="width:80%;text-align: right"  />
		</td>
		<td align="center">
			<input type="text" name="communications|communication[0]|page" label="附件佐证材料页码" class="input_text required" maxlength="99" style="width:80%"/>
		</td>
	</tr>

	<c:set value="0" var="index" scope="page"/>
	<x:forEach select="$xmlData/data/communications/communication" var="communication">

		<c:choose>
			<c:when test="${index<10}"><c:set value="0" var="flag" scope="page"/></c:when>
			<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
		</c:choose>
		<tr align="center">
			<td align="center">
				<input type="radio" class="radiobutton" name="selcommunications">
			</td>
			<td align="center">
				<span name="communications/communication[${flag}${index}]@seq_no"><x:out select="$communication/@seq_no"/></span>
			</td>
			<td>
				<input type="text" name="communications/communication[${flag}${index}]/type" label="类别"  class="required"
					   style=" width: 80%;" maxlength="99"  value="<x:out select="$communication/type"/>"/>
			</td>
			<td>
				<input type="text" name="communications/communication[${flag}${index}]/domestic_experts" label="国内专家来室交流" onfocus="InitInput.setNumber(this,9,0,0)" class="required"
					   style="text-align: right; width: 80%;"  value="<x:out select="$communication/domestic_experts"/>"/>
			</td>
			<td>
				<input type="text" name="communications/communication[${flag}${index}]/foreign_experts" label="国外专家来室交流" onfocus="InitInput.setNumber(this,9,0,0)" class="required"
					   style="text-align: right; width: 80%;"  value="<x:out select="$communication/foreign_experts"/>"/>
			</td>
			<td>
				<input type="text" name="communications/communication[${flag}${index}]/domestic_person" label="本室人员到国内其他单位交流" onfocus="InitInput.setNumber(this,9,0,0)" class="required"
					   style="text-align: right; width: 80%;"  value="<x:out select="$communication/domestic_person"/>"/>
			</td>
			<td>
				<input type="text" name="communications/communication[${flag}${index}]/foreign_person" label="本室人员到国外交流" onfocus="InitInput.setNumber(this,9,0,0)" class="required"
					   style="text-align: right; width: 80%;"  value="<x:out select="$communication/foreign_person"/>"/>
			</td>
			<td>
				<input type="text" name="communications/communication[${flag}${index}]/domestic_conference" label="参加国内学术会议" onfocus="InitInput.setNumber(this,9,0,0)" class="required"
					   style="text-align: right; width: 80%;"  value="<x:out select="$communication/domestic_conference"/>"/>
			</td>
			<td>
				<input type="text" name="communications/communication[${flag}${index}]/foreign_conference" label="参加国外学术会议" onfocus="InitInput.setNumber(this,9,0,0)" class="required"
					   style="text-align: right; width: 80%;"  value="<x:out select="$communication/foreign_conference"/>"/>
			</td>
			<td align="center">
				<input type="text" name="communications/communication[${flag}${index}]/page" label="附件佐证材料页码" class="input_text required"
					   maxlength="99" style="width:80%" value="<x:out select="$communication/page"/>"/>
			</td>
		</tr>
		<c:set value="${index+1}" var="index" scope="page"/>
	</x:forEach>
	</tbody>
	<script type="text/javascript">
		showAllDateTag("scienceTechnology");
	</script>
</table>
<table width="98%" align="center" border="0">
	<tr >
		<td >
			<input class="button_02" name="cmdAddbefore" type=button value="添加"
				   onclick="if(checkTabLimit('communications',10,'国内外学术交流最多只能添加10条')){addNewRow('communications');showDateTag('communications');try{top.resizeFrame();}catch(e){};}">
			<input class="button_02" name="cmdMovePrev" type=button value="上移"
				   onclick="movePrev('communications','selcommunications')">
			<input class="button_02" name="cmdMoveNext" type=button value="下移"
				   onclick="moveNext('communications','selcommunications')">
			<input class="button_02" name="cmddel" type=button value="删除"
				   onclick="deleteSelectedRow('communications','国内外学术交流')">
			<tbe:tableToExcel tableTitle="国内外学术交流" type="proposal" tableId="communications" keyCode="${posCode}" maxSize="10" validateOption="communications_validate_option" headOption="communications_head_option" buttonClass="button_02"/>

		</td>
	</tr>
</table>
<br/>

<div class="t_bar">
	4、开放课题（限99项）
</div>
<table id="topics" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0"
	   style="*border-bottom: #a1c0dc 1px solid;table-layout: fixed;">
	<col width="5%"/>
	<col width="5%"/>
	<col width="15%"/>
	<col width="15%"/>
	<col width="15%"/>
	<col width="15%"/>
	<col width="15%"/>
	<col width="15%"/>
	<thead>
	<tr style="border:1px solid #B7D1E6">
		<th class="TblHead" align="center">选择</th>
		<th class="TblHead" align="center">序号</th>
		<th class="TblHead" align="center">课题名称</th>
		<th class="TblHead" align="center">课题负责人</th>
		<th class="TblHead" align="center">负责人工作单位</th>
		<th class="TblHead" align="center">起止时间</th>
		<th class="TblHead" align="center">总经费（万元）</th>
		<th class="TblHead" align="center">附件佐证材料页码</th>
	</tr>

	</thead>
	<tbody>
	<tr style="display:none" align="center">
		<td align="center">
			<input type="radio" class="radiobutton" name="seltopics">
		</td>
		<td align="center">
			<span name="topics|topic[0]@seq_no">[index]</span>
		</td>
		<td align="center">
			<input type="text" name="topics|topic[0]|topic_title" label="课题名称" class=" required input_text "
				   maxlength="99" style="width:80%"/>
		</td>
		<td align="center">
			<input type="text" name="topics|topic[0]|topic_leader" label="课题负责人" class=" required input_text "
				   maxlength="99" style="width:80%"/>
		</td>
		<td align="center">
			<input type="text" name="topics|topic[0]|leader_org" label="负责人工作单位" class=" required input_text "
				   maxlength="99" style="width:80%"/>
		</td>
		<td align="center">
			<input type="text" name="topics|topic[0]|start_time" label="起止时间" class=" required input_text "
				   maxlength="99" style="width:80%"/>
		</td>
		<td align="center">
			<input type="text" name="topics|topic[0]|topic_money" onfocus="InitInput.setNumber(this,9,2,2)" label="总经费（万元）" class=" required input_text "  style="width:80%;text-align: right"  />
		</td>
		<td align="center">
			<input type="text" name="topics|topic[0]|page" label="附件佐证材料页码" class="input_text required" maxlength="99" style="width:80%"/>
		</td>
	</tr>

	<c:set value="0" var="index" scope="page"/>
	<x:forEach select="$xmlData/data/topics/topic" var="topic">

		<c:choose>
			<c:when test="${index<10}"><c:set value="0" var="flag" scope="page"/></c:when>
			<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
		</c:choose>
		<tr align="center">
			<td align="center">
				<input type="radio" class="radiobutton" name="seltopics">
			</td>
			<td align="center">
				<span name="topics/topic[${flag}${index}]@seq_no"><x:out select="$topic/@seq_no"/></span>
			</td>
			<td>
				<input type="text" name="topics/topic[${flag}${index}]/topic_title" label="课题名称"  class="required"
					   style=" width: 80%;" maxlength="99" value="<x:out select="$topic/topic_title"/>"/>
			</td>

			<td>
				<input type="text" name="topics/topic[${flag}${index}]/topic_leader" label="课题负责人"  class="required"
					   style="width: 80%;" maxlength="99"  value="<x:out select="$topic/topic_leader"/>"/>
			</td>
			<td>
				<input type="text" name="topics/topic[${flag}${index}]/leader_org" label="负责人工作单位"  class="required"
					   style=" width: 80%;" maxlength="99"  value="<x:out select="$topic/leader_org"/>"/>
			</td>
			<td>
				<input type="text" name="topics/topic[${flag}${index}]/start_time" label="起止时间"  class="required"
					   style="width: 80%;" maxlength="99" value="<x:out select="$topic/start_time"/>"/>
			</td>
			<td>
				<input type="text" name="topics/topic[${flag}${index}]/topic_money" label="总经费（万元）" onfocus="InitInput.setNumber(this,9,2,2)" class="required"
					   style="text-align: right; width: 80%;"  value="<x:out select="$topic/topic_money"/>"/>
			</td>
						<td>
				<input type="text" name="topics/topic[${flag}${index}]/page" label="附件佐证材料页码" maxlength="99" class="required"
					   style=" width: 80%;"  value="<x:out select="$topic/page"/>"/>
			</td>
		</tr>
		<c:set value="${index+1}" var="index" scope="page"/>
	</x:forEach>
	</tbody>
	<script type="text/javascript">
		showAllDateTag("topics");
	</script>
</table>
<table width="98%" align="center" border="0">
	<tr >
		<td >
			<input class="button_02" name="cmdAddbefore" type=button value="添加"
				   onclick="if(checkTabLimit('topics',99,'开放课题最多只能添加99条')){addNewRow('topics');showDateTag('topics');try{top.resizeFrame();}catch(e){};}">
			<input class="button_02" name="cmdMovePrev" type=button value="上移"
				   onclick="movePrev('topics','seltopics')">
			<input class="button_02" name="cmdMoveNext" type=button value="下移"
				   onclick="moveNext('topics','seltopics')">
			<input class="button_02" name="cmddel" type=button value="删除"
				   onclick="deleteSelectedRow('topics','开放课题')">
			<tbe:tableToExcel tableTitle="开放课题" type="proposal" tableId="topics" keyCode="${posCode}" maxSize="99" validateOption="topics_validate_option" headOption="topics_head_option" buttonClass="button_02"/>

		</td>
	</tr>
</table>
<br/>
<div class="t_bar">
	5、（1）学术委员会组成（限99项）
</div>
<table id="committees" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0"
	   style="*border-bottom: #a1c0dc 1px solid;table-layout: fixed;">
	<col width="5%"/>
	<col width="5%"/>
	<col width="17%"/>
	<col width="17%"/>
	<col width="17%"/>
	<col width="22%"/>
	<col width="17%"/>
	<thead>
	<tr style="border:1px solid #B7D1E6">
		<th class="TblHead" align="center">选择</th>
		<th class="TblHead" align="center">序号</th>
		<th class="TblHead" align="center">委员姓名</th>
		<th class="TblHead" align="center">工作单位</th>
		<th class="TblHead" align="center">职务</th>
		<th class="TblHead" align="center">职称</th>
		<th class="TblHead" align="center">学术委员会职务</th>
	</tr>

	</thead>
	<tbody>
	<tr style="display:none" align="center">
		<td align="center">
			<input type="radio" class="radiobutton" name="selcommittees">
		</td>
		<td align="center">
			<span name="committees|committee[0]@seq_no">[index]</span>
		</td>
		<td align="center">
			<input type="text" name="committees|committee[0]|committee_name" label="委员姓名" class=" required input_text "
				   maxlength="99" style="width:80%"/>
		</td>
		<td align="center">
			<input type="text" name="committees|committee[0]|committee_org" label="工作单位" class=" required input_text "
				   maxlength="99" style="width:80%"/>
		</td>
		<td>
			<input type="text" name="committees|committee[0]|committee_post" label="职务" class=" required input_text "
				   maxlength="99" style="width:80%"/>
		</td>
		<td align="center">
			<input type="hidden" name="committees|committee[0]|prof_title3_name" />
			<input type="hidden" name="committees|committee[0]|prof_title3_value" label="职称" class="required"/>
			<cpt:tree key="prof_title" cacheable="false" readonly="true" value="" id="prof_title3_[index]" name="prof_title"  showPattern="all" shieldPattern="-1" onClick="initProfTitleTreeValueExt"   label="职称" />
		</td>

		<%--<td align="center">
			<input type="text" name="committees|committee[0]|committee_title" label="职称" class=" required input_text "
				   maxlength="99" style="width:80%"/>
		</td>--%>

		<td align="center">
			<input type="text" name="committees|committee[0]|science_post" label="学术委员会职务" class="input_text required" maxlength="99" style="width:80%"/>
		</td>
	</tr>

	<c:set value="0" var="index" scope="page"/>
	<x:forEach select="$xmlData/data/committees/committee" var="committee">

		<c:choose>
			<c:when test="${index<10}"><c:set value="0" var="flag" scope="page"/></c:when>
			<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
		</c:choose>
		<tr align="center">
			<td align="center">
				<input type="radio" class="radiobutton" name="selcommittees">
			</td>
			<td align="center">
				<span name="committees/committee[${flag}${index}]@seq_no"><x:out select="$committee/@seq_no"/></span>
			</td>
			<td>
				<input type="text" name="committees/committee[${flag}${index}]/committee_name" label="委员姓名"  class="required"
					   style=" width: 80%;" maxlength="99" value="<x:out select="$committee/committee_name"/>"/>
			</td>

			<td>
				<input type="text" name="committees/committee[${flag}${index}]/committee_org" label="工作单位"  class="required"
					   style="width: 80%;" maxlength="99"  value="<x:out select="$committee/committee_org"/>"/>
			</td>
			<td>
				<input type="text" name="committees/committee[${flag}${index}]/committee_post" label="职务"  class="required"
					   style=" width: 80%;" maxlength="99"  value="<x:out select="$committee/committee_post"/>"/>
			</td>
			<%--<td>
				<input type="text" name="committees/committee[${flag}${index}]/committee_title" label="职称"  class="required"
					   style="width: 80%;" maxlength="99" value="<x:out select="$committee/committee_title"/>"/>
			</td>--%>
			<td align="center">
				<c:set var="prof_title_value"><x:out select="$committee/prof_title3_value" /></c:set>
				<c:set var="prof_title_name"><x:out select="$committee/prof_title3_name" /></c:set>
				<c:set var="prof_title">{'id':'${prof_title_value}','name':'${prof_title_name}'}</c:set>
				<input type="hidden" name="committees/committee[${flag}${index}]/prof_title3_name" value="${prof_title_name}"/>
				<input type="hidden" name="committees/committee[${flag}${index}]/prof_title3_value" label="职称" class="required" value="${prof_title_value}"/>
				<cpt:tree key="prof_title" cacheable="false" readonly="true" id="prof_title3_${index}" name="prof_title" value="${prof_title}" showPattern="all" shieldPattern="-1" onClick="initProfTitleTreeValueExt"   label="职称" />
			</td>
			<td>
				<input type="text" name="committees/committee[${flag}${index}]/science_post" label="学术委员会职务" maxlength="99" class="required"
					   style=" width: 80%;"  value="<x:out select="$committee/science_post"/>"/>
			</td>
		</tr>
		<c:set value="${index+1}" var="index" scope="page"/>
	</x:forEach>
	</tbody>
	<script type="text/javascript">
		showAllDateTag("committees");
	</script>
</table>
<table width="98%" align="center" border="0">
	<tr >
		<td >
			<input class="button_02" name="cmdAddbefore" type=button value="添加"
				   onclick="if(checkTabLimit('committees',99,'学术委员会组成最多只能添加99条')){addNewRow('committees');showDateTag('committees');try{top.resizeFrame();}catch(e){};}">
			<input class="button_02" name="cmdMovePrev" type=button value="上移"
				   onclick="movePrev('committees','selcommittees')">
			<input class="button_02" name="cmdMoveNext" type=button value="下移"
				   onclick="moveNext('committees','selcommittees')">
			<input class="button_02" name="cmddel" type=button value="删除"
				   onclick="deleteSelectedRow('committees','学术委员会组成')">
			<tbe:tableToExcel tableTitle="学术委员会组成" type="proposal" tableId="committees" keyCode="${posCode}" maxSize="99" validateOption="committees_validate_option" headOption="committees_head_option" buttonClass="button_02"/>

		</td>
	</tr>
</table>
<div class="t_bar">
	（2）学术委员会活动（限99项）
</div>
<table id="exercises" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0"
	   style="*border-bottom: #a1c0dc 1px solid;table-layout: fixed;">
	<col width="5%"/>
	<col width="5%"/>
	<col width="25%"/>
	<col width="25%"/>
	<col width="25%"/>
	<col width="25%"/>
	<thead>
	<tr style="border:1px solid #B7D1E6">
		<th class="TblHead" align="center">选择</th>
		<th class="TblHead" align="center">会议次序</th>
		<th class="TblHead" align="center">学术委员会召开时间</th>
		<th class="TblHead" align="center">学术委员会召开地点</th>
		<th class="TblHead" align="center">到会委员数量</th>
		<th class="TblHead" align="center">附件佐证材料页码</th>
	</tr>

	</thead>
	<tbody>
	<tr style="display:none" align="center">
		<td align="center">
			<input type="radio" class="radiobutton" name="selexercises">
		</td>
		<td align="center">
			<span name="exercises|exercise[0]@seq_no">[index]</span>
		</td>
		<td align="center" >
			<input id="exercise_convene_date_[0]" name="exercises|exercise[0]|convene_date" label="学术委员会召开时间"
				   class="required input_text date beforeToday" style="width:80%"/>
		</td>
		<td align="center">
			<input type="text" name="exercises|exercise[0]|convene_address" label="学术委员会召开地点" class=" required input_text "
				   maxlength="99" style="width:80%"/>
		</td>
		<td align="center">
			<input type="text" name="exercises|exercise[0]|committee_number" label="到会委员数量" class=" required input_text "
				   onfocus="InitInput.setNumber(this,9,0,0)" style="text-align: right; width:80%"/>
		</td>
		<td align="center">
			<input type="text" name="exercises|exercise[0]|page" label="附件佐证材料页码" class="input_text required" maxlength="99" style="width:80%"/>
		</td>
	</tr>

	<c:set value="0" var="index" scope="page"/>
	<x:forEach select="$xmlData/data/exercises/exercise" var="exercise">

		<c:choose>
			<c:when test="${index<10}"><c:set value="0" var="flag" scope="page"/></c:when>
			<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
		</c:choose>
		<tr align="center">
			<td align="center">
				<input type="radio" class="radiobutton" name="selexercises">
			</td>
			<td align="center">
				<span name="exercises/exercise[${flag}${index}]@seq_no"><x:out select="$exercise/@seq_no"/></span>
			</td>
			<td align="center" >
				<c:set var="convene_date"><x:out select="$exercise/convene_date"/></c:set>
				<input id="exercise_convene_date_[${flag}${index}]" name="exercises/exercise[${flag}${index}]/convene_date" label="学术委员会召开时间"
					   class="required input_text date beforeToday" style="width:80%" value="${convene_date}"/>
			</td>

			<td>
				<input type="text" name="exercises/exercise[${flag}${index}]/convene_address" label="学术委员会召开地点"  class="required"
					   style="width: 80%;" maxlength="99"  value="<x:out select="$exercise/convene_address"/>"/>
			</td>
			<td>
				<input type="text" name="exercises/exercise[${flag}${index}]/committee_number" label="到会委员数量"  class="required"
					   style="text-align: right; width: 80%;"  onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$exercise/committee_number"/>"/>
			</td>

			<td>
				<input type="text" name="exercises/exercise[${flag}${index}]/page" label="附件佐证材料页码" maxlength="99" class="required"
					   style=" width: 80%;"  value="<x:out select="$exercise/page"/>"/>
			</td>
		</tr>
		<c:set value="${index+1}" var="index" scope="page"/>
	</x:forEach>
	</tbody>
	<script type="text/javascript">
		showAllDateTag("exercises");
	</script>
</table>
<table width="98%" align="center" border="0">
	<tr >
		<td >
			<input class="button_02" name="cmdAddbefore" type=button value="添加"
				   onclick="if(checkTabLimit('exercises',99,'学术委员会活动最多只能添加99条')){addNewRow('exercises');showDateTag('exercises');try{top.resizeFrame();}catch(e){};}">
			<input class="button_02" name="cmdMovePrev" type=button value="上移"
				   onclick="movePrev('exercises','selexercises')">
			<input class="button_02" name="cmdMoveNext" type=button value="下移"
				   onclick="moveNext('exercises','selexercises')">
			<input class="button_02" name="cmddel" type=button value="删除"
				   onclick="deleteSelectedRow('exercises','学术委员会活动')">
			<tbe:tableToExcel tableTitle="学术委员会活动" type="proposal" tableId="exercises" keyCode="${posCode}" maxSize="99" validateOption="exercises_validate_option" headOption="exercises_head_option" buttonClass="button_02"/>

		</td>
	</tr>
</table>

<br/>
<div class="t_bar">
	6、依托单位经费支持情况
</div>
<table id="supperts" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0"
	   style="*border-bottom: #a1c0dc 1px solid;table-layout: fixed;">
	<col width="10%"/>
	<col width="22.5%"/>
	<col width="22.5%"/>
	<col width="22.5%"/>
	<col width="22.5%"/>
	<tr align="center">
		<td align="center" colspan="1">年度</td>
		<td align="center" colspan="1">${param.statYear-3}年</td>
		<td align="center" colspan="1">${param.statYear-2}年</td>
		<td align="center" colspan="1">${param.statYear-1}年</td>
		<td align="center" colspan="1">附件佐证材料页码</td>
	</tr>
	<tr>
		<td>金额（万元）</td>
		<td  align="center">
			<input type="text" name="proposal/support_funding1"  class="required input_css"  onfocus="InitInput.setNumber(this,9,2,2)"
				   style="text-align: right;width: 80%" value="<x:out select="$xmlData/data/proposal/support_funding1"/>" label="依托单位经费支持情况-->${param.statYear-3}年度金额">
		</td>
		<td  align="center">
			<input type="text" name="proposal/support_funding2"  class="required input_css"  onfocus="InitInput.setNumber(this,9,2,2)"
				   style="text-align: right;width: 80%" value="<x:out select="$xmlData/data/proposal/support_funding2"/>" label="依托单位经费支持情况-->${param.statYear-2}年度金额">
		</td>
		<td  align="center">
			<input type="text" name="proposal/support_funding3"  class="required input_css"  onfocus="InitInput.setNumber(this,9,2,2)"
				   style="text-align: right;width: 80%" value="<x:out select="$xmlData/data/proposal/support_funding3"/>" label="依托单位经费支持情况-->${param.statYear-1}年度金额">
		</td>
		<td  align="center">
			<input type="text" name="proposal/page"  class="required input_css"  maxlength="99"
				   style="width: 80%" value="<x:out select="$xmlData/data/proposal/page"/>" label="依托单位经费支持情况-->附件佐证材料页码">
		</td>
	</tr>
</table>
<br/>
<div class="t_bar">
	7、新增大型仪器设备（10万元以上）（限99条）
</div>
<table id="instruments" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0"
	   style="*border-bottom: #a1c0dc 1px solid;table-layout: fixed;">
	<col width="5%"/>
	<col width="5%"/>
	<col width="18%"/>
	<col width="18%"/>
	<col width="18%"/>
	<col width="18%"/>
	<col width="18%"/>
	<thead>
	<tr style="border:1px solid #B7D1E6">
		<th class="TblHead" align="center">选择</th>
		<th class="TblHead" align="center">序号</th>
		<th class="TblHead" align="center">设备名称</th>
		<th class="TblHead" align="center">原值</th>
		<th class="TblHead" align="center">数量（台套）</th>
		<th class="TblHead" align="center">购置时间</th>
		<th class="TblHead" align="center">附件佐证材料页码</th>
	</tr>

	</thead>
	<tbody>
	<tr style="display:none" align="center">
		<td align="center">
			<input type="radio" class="radiobutton" name="selinstruments">
		</td>
		<td align="center">
			<span name="instruments|instrument[0]@seq_no">[index]</span>
		</td>
		<td align="center">
			<input type="text" name="instruments|instrument[0]|instrument_name" label="设备名称" class=" required input_text "
				   maxlength="99" style="width:80%"/>
		</td>
		<td align="center">
			<input type="text" name="instruments|instrument[0]|original_money" label="原值" class=" required input_text "
				   onfocus="InitInput.setNumber(this,9,2,2)" style="text-align: right; width:80%"/>
		</td>
		<td align="center" >
			<input  name="instruments|instrument[0]|instrument_number" label="数量"
				   class="required input_text " onfocus="InitInput.setNumber(this,9,0,0)" style="text-align: right;width:80%"/>
		</td>
		<td align="center" >
			<input id="instrument_purchase_date_[0]" name="instruments|instrument[0]|purchase_date" label="购置时间"
				   class="required input_text date beforeToday" style="width:70%"/>
		</td>
		<td align="center">
			<input type="text" name="instruments|instrument[0]|page" label="附件佐证材料页码" class="input_text required" maxlength="99" style="width:80%"/>
		</td>
	</tr>

	<c:set value="0" var="index" scope="page"/>
	<x:forEach select="$xmlData/data/instruments/instrument" var="instrument">

		<c:choose>
			<c:when test="${index<10}"><c:set value="0" var="flag" scope="page"/></c:when>
			<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
		</c:choose>
		<tr align="center">
			<td align="center">
				<input type="radio" class="radiobutton" name="selinstruments">
			</td>
			<td align="center">
				<span name="instruments/instrument[${flag}${index}]@seq_no"><x:out select="$instrument/@seq_no"/></span>
			</td>
			<td>
				<input type="text" name="instruments/instrument[${flag}${index}]/instrument_name" label="设备名称"  class="required"
					   style="width: 80%;" maxlength="99"  value="<x:out select="$instrument/instrument_name"/>"/>
			</td>
			<td>
				<input type="text" name="instruments/instrument[${flag}${index}]/original_money" label="原值"  class="required"
					   style="text-align: right; width: 80%;"  onfocus="InitInput.setNumber(this,9,2,2)"  value="<x:out select="$instrument/original_money"/>"/>
			</td>
			<td>
				<input type="text" name="instruments/instrument[${flag}${index}]/instrument_number" label="数量"  class="required"
					   style="text-align: right; width: 80%;"  onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$instrument/instrument_number"/>"/>
			</td>
			<td align="center" >
				<c:set var="purchase_date"><x:out select="$instrument/purchase_date"/></c:set>
				<input id="instrument_purchase_time_[${flag}${index}]" name="instruments/instrument[${flag}${index}]/purchase_date" label="购置时间"
					   class="required input_text date beforeToday" style="width:70%" value="${purchase_date}"/>
			</td>
			<td>
				<input type="text" name="instruments/instrument[${flag}${index}]/page" label="附件佐证材料页码" maxlength="99" class="required"
					   style=" width: 80%;"  value="<x:out select="$instrument/page"/>"/>
			</td>
		</tr>
		<c:set value="${index+1}" var="index" scope="page"/>
	</x:forEach>
	</tbody>
	<script type="text/javascript">
		showAllDateTag("instruments");
	</script>
</table>
<table width="98%" align="center" border="0">
	<tr >
		<td >
			<input class="button_02" name="cmdAddbefore" type=button value="添加"
				   onclick="if(checkTabLimit('instruments',99,'新增大型仪器设备最多只能添加99条')){addNewRow('instruments');showDateTag('instruments');try{top.resizeFrame();}catch(e){};}">
			<input class="button_02" name="cmdMovePrev" type=button value="上移"
				   onclick="movePrev('instruments','selinstruments')">
			<input class="button_02" name="cmdMoveNext" type=button value="下移"
				   onclick="moveNext('instruments','selinstruments')">
			<input class="button_02" name="cmddel" type=button value="删除"
				   onclick="deleteSelectedRow('instruments','新增大型仪器设备')">
			<tbe:tableToExcel tableTitle="新增大型仪器设备" type="proposal" tableId="instruments" keyCode="${posCode}" maxSize="99" validateOption="instruments_validate_option" headOption="instruments_head_option" buttonClass="button_02"/>

		</td>
	</tr>
</table>

<script type="text/javascript">


	/**
	 * 上移行
	 * @param tblId
	 * @returns {Boolean}
	 */
	function movePrev2(tblId, selName) {
		if (!selName)
			selName = "";
		if ($("#" + tblId + " :radio[name*='" + selName + "']:checked").length == 0) {
			scmWarn(irisNotes.prevWarn);
			return false;
		}
		if ($("#" + tblId + " tr").length <= 2)
			return false;
		var trChecked = $("#" + tblId + " :radio[name*='" + selName + "']:checked")
				.parents("tr").first();// 取得被选中的行
		var trPrev = trChecked.prev();// 取得上一行
		var index = trChecked.get(0).rowIndex;// 获得行号
		if (index <= 2) {// 如果是第一行
			scmWarn(irisNotes.tabelMoveWarn1);
			return false;
		}
		//trChecked.remove();
		trPrev.before(trChecked);
		trChecked.find(":radio[name*='" + selName + "']").attr("checked", 'true');
		refreshRowINdex2(tblId);
	}

	/**
	 * 下移行
	 * @param tblId
	 * @returns {Boolean}
	 */
	function moveNext2(tblId, selName) {
		if (!selName)
			selName = "";
		if ($("#" + tblId + " :radio[name*='" + selName + "']:checked").length == 0) {
			scmWarn(irisNotes.nextWarn);
			return false;
		}
		if ($("#" + tblId + " tr").length <= 2) {
			return false;
		}
		var trChecked = $("#" + tblId + " :radio[name*='" + selName + "']:checked")
				.parents("tr").first();// 取得被选中的行
		var trNext = trChecked.next();
		var index = trChecked.get(0).rowIndex;// 获得行号
		if (index == $("#" + tblId + " tr").length - 1) {// 如果是第一行
			scmWarn(irisNotes.tabelMoveWarn2);
			return false;
		}
		//trChecked.remove();
		trNext.after(trChecked);
		trChecked.find(":radio[name*='" + selName + "']").attr("checked", "true");
		refreshRowINdex2(tblId);
	}

	/**
	 * 重新计算行号
	 * @param tblId
	 */
	function refreshRowINdex2(tblId) {
		//重新计算行号
		$("#" + tblId + " tr").each(function () {
					var seq = $(this).get(0).rowIndex;//获得行数
					if (tblId == 'tblPaperWorks') {
						seq = seq - 1;
					}
					if (seq > 1) {//如果有行  显示时display行不计入类，故只减1
						seq = seq - 1;
						var seq_no = $(this).find("[name$='seq_no']");
						if (seq_no.is("span"))
							seq_no.html(seq);
						else
							seq_no.val(seq);

						seq = "" + (seq - 1);
						if (seq.length == 1)
							seq = "0" + seq;
						//替换相应的name参数的seq
						$(this).find("input,span,textarea,select").each(function () {
							var name = $(this).attr("name");
							if (name != null && name != "") {
								name = name.replace(/\[\d*\]/g, "[" + seq + "]");
								$(this).attr("name", name);
							}
							/* var id=$(this).attr("id");
                            if(id!=null&&id!=""){
                                id=id.replace(/\[\d*\]/g,"["+seq+"]");
                                $(this).attr("id",id);
                                id=id.replace(/\d+/g,""+seq+"");
                                $(this).attr("id",id);
                            } */
							var className = $(this).attr("class");
							if (className != null && className != "") {
								className = className.replace(/\[\d*\]/g, "[" + seq + "]");
								$(this).attr("class", className);
							}
						});
					}
				}
		);

	}

	function initProfTitleTreeValueExt(treeId, treeNode) {

		var inputId = treeId.substring(0, treeId.lastIndexOf('_'));
		if (!(treeNode && (treeNode.level > 0 || !treeNode.isParent))) {
			scmWarn($("#" + treeId).attr("label")
					+ messageTip.researchAreaInvalidDisciplineCode);
			if (treeNode.level == 0) {
				$("#" + treeId).val("");
				$("#" + treeId).parents("td").find("[name$='" + inputId + "_code'],[id$='" + inputId+ "_code']").val("");
				$("#" + treeId).parents("td").find("[name$='" + inputId + "_value'],[id$='" + inputId+ "_value']").val("");
				$("#" + treeId).parents("td").find("[name$='" + inputId + "_name'],[id$='" + inputId+ "_name']").val("");
			}
			return false;
		}
		var str = treeNode.name;
		var obj = treeNode.parentNode;
		while (obj != null) {
			obj = obj.parentNode;
		}
		$("#" + treeId).parents("td").find("[name$='" + inputId + "_code'],[id$='" + inputId+ "_code']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + inputId + "_value'],[id$='" + inputId+ "_value']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + inputId + "_name'],[id$='" + inputId+ "_name']").val(str);
	}
	/**
	 * 删除一行
	 * @param radioId
	 */
	function deleteSelectedRow2(tableId, message, nummin, warnMsg, selName) {
		if (!selName) selName = "";
		var tr = $("#" + tableId + " :radio[name*='" + selName + "']:checked").parents("tr");
		if (nummin == null)
			nummin = 0;
		var length = tr.length;
		if (tr.length == 0)
			tr = $("#" + tableId + " tr").filter(":last");
		else if (tr.length > 1)
			tr = tr.first();

		if (tr.get(0).rowIndex - 1 == nummin) {
			scmWarn(irisNotes.delWarn1);
			return false;
		}
		if (length == 0) {

			scmWarn(irisNotes.delWarn2);

			return false;
		}
		if (!confirm(messageTip.deleteTip + message + "？"))
			return false;
		tr.remove();
		refreshRowINdex2(tableId);
		return true;
		setSubmitOrg();
	}

</script>
